package com.LearnInWorld.user.feign;

import com.LearnInWorld.entity.Result;
import com.LearnInWorld.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "LearnInWorld-service-user",contextId = "userClient")
@RequestMapping("/user")
@Repository
public interface UserFeign {

    @RequestMapping("/find/{username}")
    public Result<User> findUser(@PathVariable("username") String username);

}
